DBGetSessionNum
DBGetSessionNum Get a session number
#include <DatabaseAccess.h> Data Access Manager
OSErr DBGetSessionNum( sessID, sessNum, asyncPB);
long sessID ; is the session ID you specify
short *sessNum ; is the requested session number
DBAsyncParmBlkPtr asyncPB; is a pointer to the asynchronous parameter
block
returns Error Code; 0=no error
The DBGetSessionNum function returns the session number of the session
you specify with the sessID parameter.
sessID is the session ID about which you want information
sessNum is the session number of the session you specified with the sessID
parameter. The session number is unique for a particular database
extension, but the same session number might be in use for different
database extensions at the same time.
asyncPB is a pointer to the asynchronous parameter block. If you do not want
to call the function asynchronously, set this parameter to NIL
Returns: an operating system Error Code.
noErr (0) No error
rcDBBadSessID -(806) Session ID is invalid
rcDBAsyncNotSupp (-809) The database extension does not support asynchronous
calls
rcDBPackNotInited (-813) The InitDBPack function has not yet been called